home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Media Folders.xpl < prev    next >
Text File  |  2002-11-01  |  2KB  |  60 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="4"
  3. "COUNT"="4"
  4. "UIPATH"="System\File System\Folders\Data"
  5. "NAME"="Other Media Folders"
  6. "VERSION"="3.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Media Files"
  9. "TEXT 2"="My Media"
  10. "TEXT 3"="Graphics"
  11. "TEXT 4"="Web Graphics"
  12. "DESCRIPTION 1"=""Media Files Root" specifies the root folder for all types of media files."
  13. "DESCRIPTION 2"=""My Media" specifies where you normally save your media files."
  14. "DESCRIPTION 3"=""Graphics" specifies where your graphics are saved (*.BMP, *.PNG and so on)."
  15. "DESCRIPTION 4"=""Web Graphics" specifies where you save your work that is somehow related with the Internet."
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"="Thanks to CptSiskoX for his help!"
  20.  
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@")
  25.   SetUIElement 1,s
  26.  
  27.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath")
  28.   SetUIElement 2,s
  29.  
  30.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath") 
  31.   SetUIElement 3,s
  32.  
  33.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath") 
  34.   SetUIElement 4,s
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  s=GetUIElement(1)
  42.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@",s,1)
  43.  
  44.  s=GetUIElement(2)
  45.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath",s,1)
  46.  
  47.  s=GetUIElement(3)
  48.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath",s,1) 
  49.  
  50.  s=GetUIElement(4)
  51.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath",s,1) 
  52. End Sub
  53.  
  54.  
  55. Sub Plugin_Terminate 
  56. End Sub
  57.  
  58.  
  59.  
  60.